Trees | Indices | Toggle frames |
---|
The listener properties for positional audio.
You can obtain the singleton instance of this class as pyglet.media.listener.
float |
volume
The master volume for sound playback.
|
3-tuple of float |
position
The position of the listener in 3D space.
|
3-tuple of float |
forward_orientation
A vector giving the direction the
listener is facing.
|
3-tuple of float |
up_orientation
A vector giving the "up" orientation
of the listener.
|
The master volume for sound playback.
All sound volumes are multiplied by this master volume before being played. A value of 0 will silence playback (but still consume resources). The nominal volume is 1.0.
The position of the listener in 3D space.
The position is given as a tuple of floats (x, y, z). The unit defaults to meters, but can be modified with the listener properties.
A vector giving the direction the listener is facing.
The orientation is given as a tuple of floats (x, y, z), and has no unit. The forward orientation should be orthogonal to the up orientation.
A vector giving the "up" orientation of the listener.
The orientation is given as a tuple of floats (x, y, z), and has no unit. The up orientation should be orthogonal to the forward orientation.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:19 2009 | http://epydoc.sourceforge.net |